// -----------------------------------------------------------------------
//  <copyright file="ApiControllerBase.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-12-22 12:03</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Authorization;


namespace DaprPlus.AspNetCore.Mvc;

/// <summary>
/// Api控制器基类
/// </summary>
[ApiController]
[Route("api/[controller]")]
public abstract class ApiControllerBase : ControllerBase
{
    /// <summary>
    /// 获取 日志对象
    /// </summary>
    public ILogger Logger => HttpContext.RequestServices.GetLogger(GetType());

    protected IServiceProvider ServiceProvider => HttpContext.RequestServices;
}
